"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports[Symbol.toStringTag] = "Module";
var NProgress = require("nprogress");
var ElementUI = require("element-ui");
var defaultLang = require("./lang/zh-CN.js");
var EleAvatarList = require("./ele-avatar-list");
var EleBasicSelect = require("./ele-basic-select");
var EleDot = require("./ele-dot");
var EleEmpty = require("./ele-empty");
var eleException = require("./ele-exception");
var eleFileList = require("./ele-file-list");
var eleFileListTool = require("./ele-file-list-tool");
var eleIconPicker = require("./ele-icon-picker");
var EleModal = require("./ele-modal");
var EleProLayout = require("./ele-pro-layout");
var EleProTable = require("./ele-pro-table");
var EleResult = require("./ele-result");
var EleTableDraggable = require("./ele-table-draggable");
var EleTableSelect = require("./ele-table-select");
var EleTagsInput = require("./ele-tags-input");
var EleToolItem = require("./ele-tool-item");
var EleToolbar = require("./ele-toolbar");
var EleTreeSelect = require("./ele-tree-select");
var core = require("./utils/core");
var messageLoading = require("./utils/message-loading");
var license = require("./utils/license");
var chartTheme = require("./utils/chart-theme");
var menuUtil = require("./utils/menu-util");
var printer = require("./utils/printer");
var themeUtil = require("./utils/theme-util");
var validate = require("./utils/validate");
var wordCloudColor = require("./utils/word-cloud-color");
function _interopDefaultLegacy(e) {
  return e && typeof e === "object" && "default" in e ? e : { "default": e };
}
var NProgress__default = /* @__PURE__ */ _interopDefaultLegacy(NProgress);
var ElementUI__default = /* @__PURE__ */ _interopDefaultLegacy(ElementUI);
var defaultLang__default = /* @__PURE__ */ _interopDefaultLegacy(defaultLang);
var EleAvatarList__default = /* @__PURE__ */ _interopDefaultLegacy(EleAvatarList);
var EleBasicSelect__default = /* @__PURE__ */ _interopDefaultLegacy(EleBasicSelect);
var EleDot__default = /* @__PURE__ */ _interopDefaultLegacy(EleDot);
var EleEmpty__default = /* @__PURE__ */ _interopDefaultLegacy(EleEmpty);
var eleException__default = /* @__PURE__ */ _interopDefaultLegacy(eleException);
var eleFileList__default = /* @__PURE__ */ _interopDefaultLegacy(eleFileList);
var eleFileListTool__default = /* @__PURE__ */ _interopDefaultLegacy(eleFileListTool);
var eleIconPicker__default = /* @__PURE__ */ _interopDefaultLegacy(eleIconPicker);
var EleModal__default = /* @__PURE__ */ _interopDefaultLegacy(EleModal);
var EleProLayout__default = /* @__PURE__ */ _interopDefaultLegacy(EleProLayout);
var EleProTable__default = /* @__PURE__ */ _interopDefaultLegacy(EleProTable);
var EleResult__default = /* @__PURE__ */ _interopDefaultLegacy(EleResult);
var EleTableDraggable__default = /* @__PURE__ */ _interopDefaultLegacy(EleTableDraggable);
var EleTableSelect__default = /* @__PURE__ */ _interopDefaultLegacy(EleTableSelect);
var EleTagsInput__default = /* @__PURE__ */ _interopDefaultLegacy(EleTagsInput);
var EleToolItem__default = /* @__PURE__ */ _interopDefaultLegacy(EleToolItem);
var EleToolbar__default = /* @__PURE__ */ _interopDefaultLegacy(EleToolbar);
var EleTreeSelect__default = /* @__PURE__ */ _interopDefaultLegacy(EleTreeSelect);
const installer = {
  install: function(Vue, opt) {
    if (opt == null ? void 0 : opt.license) {
      license.setLicense(opt.license);
    }
    license.checkLicense();
    Vue.component(EleAvatarList__default["default"].name, EleAvatarList__default["default"]);
    Vue.component(EleBasicSelect__default["default"].name, EleBasicSelect__default["default"]);
    Vue.component(EleDot__default["default"].name, EleDot__default["default"]);
    Vue.component(EleEmpty__default["default"].name, EleEmpty__default["default"]);
    Vue.component(EleModal__default["default"].name, EleModal__default["default"]);
    Vue.component(EleProLayout__default["default"].name, EleProLayout__default["default"]);
    Vue.component(EleProTable__default["default"].name, EleProTable__default["default"]);
    Vue.component(EleResult__default["default"].name, EleResult__default["default"]);
    Vue.component(EleTableDraggable__default["default"].name, EleTableDraggable__default["default"]);
    Vue.component(EleTableSelect__default["default"].name, EleTableSelect__default["default"]);
    Vue.component(EleTagsInput__default["default"].name, EleTagsInput__default["default"]);
    Vue.component(EleToolItem__default["default"].name, EleToolItem__default["default"]);
    Vue.component(EleToolbar__default["default"].name, EleToolbar__default["default"]);
    Vue.component(EleTreeSelect__default["default"].name, EleTreeSelect__default["default"]);
    Vue.component("ElTableDraggable", EleTableDraggable__default["default"]);
    Vue.prototype.$util = {
      digit: core.digit,
      toDateString: core.toDateString,
      timeAgo: core.timeAgo,
      toTreeData: core.toTreeData,
      eachTreeData: core.eachTreeData,
      formatTreeData: core.formatTreeData,
      uuid: core.uuid,
      random: core.random,
      formatNumber: core.formatNumber,
      escape: core.escape,
      htmlToText: core.htmlToText,
      deepClone: core.deepClone,
      assignObject: core.assignObject,
      isExternalLink: core.isExternalLink,
      bd09ToGcj02: core.bd09ToGcj02,
      gcj02ToBd09: core.gcj02ToBd09,
      play: core.play,
      device: core.device,
      countdown: core.countdown,
      toggleFullscreen: core.toggleFullscreen,
      isFullscreen: core.isFullscreen,
      screenWidth: core.screenWidth,
      screenHeight: core.screenHeight,
      contentWidth: core.contentWidth,
      contentHeight: core.contentHeight,
      exportSheet: core.exportSheet,
      combineArrays: core.combineArrays
    };
    Vue.prototype.$messageLoading = messageLoading.messageLoading;
    Vue.prototype.$ELEADMIN = {
      request: opt == null ? void 0 : opt.request,
      response: opt == null ? void 0 : opt.response,
      mapKey: opt == null ? void 0 : opt.mapKey
    };
    Vue.filter("escape", (value) => core.escape(value));
    Vue.filter("htmlToText", (value) => core.htmlToText(value));
    Vue.filter("digit", (value, length) => core.digit(value, length));
    Vue.filter("timeAgo", (value, onlyDate) => core.timeAgo(value, onlyDate));
    Vue.filter("toDateString", (value, format) => core.toDateString(value, format));
    NProgress__default["default"].configure(Object.assign({
      speed: 200,
      minimum: 0.08,
      trickleRate: 0.1,
      trickleSpeed: 100,
      showSpinner: false
    }, opt == null ? void 0 : opt.nProgress));
    Vue.use(ElementUI__default["default"], Object.assign({
      size: "medium",
      locale: defaultLang__default["default"]
    }, opt));
  }
};
Object.defineProperty(exports, "EleAvatarList", {
  enumerable: true,
  get: function() {
    return EleAvatarList__default["default"];
  }
});
Object.defineProperty(exports, "EleBasicSelect", {
  enumerable: true,
  get: function() {
    return EleBasicSelect__default["default"];
  }
});
Object.defineProperty(exports, "EleDot", {
  enumerable: true,
  get: function() {
    return EleDot__default["default"];
  }
});
Object.defineProperty(exports, "EleEmpty", {
  enumerable: true,
  get: function() {
    return EleEmpty__default["default"];
  }
});
Object.defineProperty(exports, "EleException", {
  enumerable: true,
  get: function() {
    return eleException__default["default"];
  }
});
Object.defineProperty(exports, "EleFileList", {
  enumerable: true,
  get: function() {
    return eleFileList__default["default"];
  }
});
Object.defineProperty(exports, "EleFileListTool", {
  enumerable: true,
  get: function() {
    return eleFileListTool__default["default"];
  }
});
Object.defineProperty(exports, "EleIconPicker", {
  enumerable: true,
  get: function() {
    return eleIconPicker__default["default"];
  }
});
Object.defineProperty(exports, "EleModal", {
  enumerable: true,
  get: function() {
    return EleModal__default["default"];
  }
});
Object.defineProperty(exports, "EleProLayout", {
  enumerable: true,
  get: function() {
    return EleProLayout__default["default"];
  }
});
Object.defineProperty(exports, "EleProTable", {
  enumerable: true,
  get: function() {
    return EleProTable__default["default"];
  }
});
Object.defineProperty(exports, "EleResult", {
  enumerable: true,
  get: function() {
    return EleResult__default["default"];
  }
});
Object.defineProperty(exports, "EleTableDraggable", {
  enumerable: true,
  get: function() {
    return EleTableDraggable__default["default"];
  }
});
Object.defineProperty(exports, "EleTableSelect", {
  enumerable: true,
  get: function() {
    return EleTableSelect__default["default"];
  }
});
Object.defineProperty(exports, "EleTagsInput", {
  enumerable: true,
  get: function() {
    return EleTagsInput__default["default"];
  }
});
Object.defineProperty(exports, "EleToolItem", {
  enumerable: true,
  get: function() {
    return EleToolItem__default["default"];
  }
});
Object.defineProperty(exports, "EleToolbar", {
  enumerable: true,
  get: function() {
    return EleToolbar__default["default"];
  }
});
Object.defineProperty(exports, "EleTreeSelect", {
  enumerable: true,
  get: function() {
    return EleTreeSelect__default["default"];
  }
});
Object.defineProperty(exports, "assignObject", {
  enumerable: true,
  get: function() {
    return core.assignObject;
  }
});
Object.defineProperty(exports, "bd09ToGcj02", {
  enumerable: true,
  get: function() {
    return core.bd09ToGcj02;
  }
});
Object.defineProperty(exports, "combineArrays", {
  enumerable: true,
  get: function() {
    return core.combineArrays;
  }
});
Object.defineProperty(exports, "contentHeight", {
  enumerable: true,
  get: function() {
    return core.contentHeight;
  }
});
Object.defineProperty(exports, "contentWidth", {
  enumerable: true,
  get: function() {
    return core.contentWidth;
  }
});
Object.defineProperty(exports, "countdown", {
  enumerable: true,
  get: function() {
    return core.countdown;
  }
});
Object.defineProperty(exports, "deepClone", {
  enumerable: true,
  get: function() {
    return core.deepClone;
  }
});
Object.defineProperty(exports, "device", {
  enumerable: true,
  get: function() {
    return core.device;
  }
});
Object.defineProperty(exports, "digit", {
  enumerable: true,
  get: function() {
    return core.digit;
  }
});
Object.defineProperty(exports, "eachTreeData", {
  enumerable: true,
  get: function() {
    return core.eachTreeData;
  }
});
Object.defineProperty(exports, "escape", {
  enumerable: true,
  get: function() {
    return core.escape;
  }
});
Object.defineProperty(exports, "exportSheet", {
  enumerable: true,
  get: function() {
    return core.exportSheet;
  }
});
Object.defineProperty(exports, "formatNumber", {
  enumerable: true,
  get: function() {
    return core.formatNumber;
  }
});
Object.defineProperty(exports, "formatTreeData", {
  enumerable: true,
  get: function() {
    return core.formatTreeData;
  }
});
Object.defineProperty(exports, "gcj02ToBd09", {
  enumerable: true,
  get: function() {
    return core.gcj02ToBd09;
  }
});
Object.defineProperty(exports, "htmlToText", {
  enumerable: true,
  get: function() {
    return core.htmlToText;
  }
});
Object.defineProperty(exports, "isExternalLink", {
  enumerable: true,
  get: function() {
    return core.isExternalLink;
  }
});
Object.defineProperty(exports, "isFullscreen", {
  enumerable: true,
  get: function() {
    return core.isFullscreen;
  }
});
Object.defineProperty(exports, "play", {
  enumerable: true,
  get: function() {
    return core.play;
  }
});
Object.defineProperty(exports, "random", {
  enumerable: true,
  get: function() {
    return core.random;
  }
});
Object.defineProperty(exports, "screenHeight", {
  enumerable: true,
  get: function() {
    return core.screenHeight;
  }
});
Object.defineProperty(exports, "screenWidth", {
  enumerable: true,
  get: function() {
    return core.screenWidth;
  }
});
Object.defineProperty(exports, "timeAgo", {
  enumerable: true,
  get: function() {
    return core.timeAgo;
  }
});
Object.defineProperty(exports, "toDateString", {
  enumerable: true,
  get: function() {
    return core.toDateString;
  }
});
Object.defineProperty(exports, "toTreeData", {
  enumerable: true,
  get: function() {
    return core.toTreeData;
  }
});
Object.defineProperty(exports, "toggleFullscreen", {
  enumerable: true,
  get: function() {
    return core.toggleFullscreen;
  }
});
Object.defineProperty(exports, "uuid", {
  enumerable: true,
  get: function() {
    return core.uuid;
  }
});
Object.defineProperty(exports, "messageLoading", {
  enumerable: true,
  get: function() {
    return messageLoading.messageLoading;
  }
});
Object.defineProperty(exports, "setLicense", {
  enumerable: true,
  get: function() {
    return license.setLicense;
  }
});
exports["default"] = installer;
Object.keys(chartTheme).forEach(function(k) {
  if (k !== "default" && !exports.hasOwnProperty(k))
    Object.defineProperty(exports, k, {
      enumerable: true,
      get: function() {
        return chartTheme[k];
      }
    });
});
Object.keys(menuUtil).forEach(function(k) {
  if (k !== "default" && !exports.hasOwnProperty(k))
    Object.defineProperty(exports, k, {
      enumerable: true,
      get: function() {
        return menuUtil[k];
      }
    });
});
Object.keys(printer).forEach(function(k) {
  if (k !== "default" && !exports.hasOwnProperty(k))
    Object.defineProperty(exports, k, {
      enumerable: true,
      get: function() {
        return printer[k];
      }
    });
});
Object.keys(themeUtil).forEach(function(k) {
  if (k !== "default" && !exports.hasOwnProperty(k))
    Object.defineProperty(exports, k, {
      enumerable: true,
      get: function() {
        return themeUtil[k];
      }
    });
});
Object.keys(validate).forEach(function(k) {
  if (k !== "default" && !exports.hasOwnProperty(k))
    Object.defineProperty(exports, k, {
      enumerable: true,
      get: function() {
        return validate[k];
      }
    });
});
Object.keys(wordCloudColor).forEach(function(k) {
  if (k !== "default" && !exports.hasOwnProperty(k))
    Object.defineProperty(exports, k, {
      enumerable: true,
      get: function() {
        return wordCloudColor[k];
      }
    });
});
